﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HPCERP.Model.Menu
{
    /// <summary>
    /// Module class of the web site
    /// </summary>
    public class Module
    {
        /// <summary>
        /// Name displayed in the Menu
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// Name of the View Controller
        /// </summary>
        public string Controller { get; set; }

        /// <summary>
        /// Default Action method
        /// </summary>
        public string Action { get; set; }

        /// <summary>
        /// Id parameter passed to Action method
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// Controller Area 
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        /// Class Constructor
        /// </summary>
        /// <param name="name">Name displayed in the Menu</param>
        /// <param name="controller">Name of the View Controller</param>
        /// <param name="action">Default Action method</param>
        /// <param name="area">Controller Area</param>
        /// <param name="id">Id parameter passed to Action method</param>
        public Module(string name, string controller, string action, string area, string id)
        {
            this.Name = name;
            this.Controller = controller;
            this.Action = action;
            this.Id = id;
            this.Area = area;
        }


        /// <summary>
        /// Class Constructor
        /// </summary>
        /// <param name="name">Name displayed in the Menu</param>
        /// <param name="controller">Name of the View Controller</param>
        /// <param name="action">Default Action method</param>
        /// <param name="area">Controller Area</param>
        public Module(string name, string controller, string action, string area)
        {
            this.Name = name;
            this.Controller = controller;
            this.Action = action;
            this.Area = area;
        }
    }
}
